package com.ncloud.common.exception;

@SuppressWarnings("serial")
public class UserException extends RuntimeException{
	private String errorCode;
	private String errorMessage;
	private boolean forceCatch = false;
	public UserException(){
		
	}
	public UserException(String errorMessage){
		super(errorMessage);
		this.errorMessage = errorMessage;
	}

	public UserException(String errorCode,String errorMessage){
		super(errorMessage);
		this.errorCode = errorCode;
		this.errorMessage = errorMessage;
	}
	public UserException(String errorMessage,Throwable throwable){
		super(errorMessage,throwable);
		this.errorMessage = errorMessage;
	}
	public UserException(String errorMessage,Throwable throwable,boolean forceCatch){
		super(errorMessage,throwable);
		this.errorMessage = errorMessage;
		this.forceCatch = forceCatch;
	}
	public UserException(String errorCode,String errorMessage,Throwable throwable){
		super(errorMessage,throwable);
		this.errorCode = errorCode;
		this.errorMessage = errorMessage;
	}
	public UserException(String errorCode,String errorMessage,Throwable throwable,boolean forceCatch){
		super(errorMessage,throwable);
		this.errorCode = errorCode;
		this.errorMessage = errorMessage;
		this.forceCatch = forceCatch;
	}
	public String getErrorCode() {
		return errorCode;
	}
	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}
	public String getErrorMessage() {
		return errorMessage;
	}
	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}
	public boolean isForceCatch() {
		return forceCatch;
	}
	public void setForceCatch(boolean forceCatch) {
		this.forceCatch = forceCatch;
	}
	
}
